package edu.yctc.weblog.entity;

import java.util.Date;

public class BlogDO {
    private Long id;

    private String title;

    private String subUrl;

    private String coverImage;

    private Long categoryId;

    private String tags;

    /** 状态码, 见{@link edu.yctc.weblog.enums.BlogStatus} */
    private Integer status;

    private Long views;

    /** 是否开启评论状态码, 见{@link edu.yctc.weblog.enums.BlogCommentStatus} */
    private Integer isEnableComment;

    /** 是否删除状态码, 见{@link edu.yctc.weblog.enums.BlogDeleteStatus} */
    private Integer isDeleted;

    private Date createTime;

    private Date modifyTime;

    private String content;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubUrl() {
        return subUrl;
    }

    public void setSubUrl(String subUrl) {
        this.subUrl = subUrl;
    }

    public String getCoverImage() {
        return coverImage;
    }

    public void setCoverImage(String coverImage) {
        this.coverImage = coverImage;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getViews() {
        return views;
    }

    public void setViews(Long views) {
        this.views = views;
    }

    public Integer getIsEnableComment() {
        return isEnableComment;
    }

    public void setIsEnableComment(Integer isEnableComment) {
        this.isEnableComment = isEnableComment;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("BlogDO [id=");
        builder.append(id);
        builder.append(", title=");
        builder.append(title);
        builder.append(", subUrl=");
        builder.append(subUrl);
        builder.append(", coverImage=");
        builder.append(coverImage);
        builder.append(", categoryId=");
        builder.append(categoryId);
        builder.append(", tags=");
        builder.append(tags);
        builder.append(", status=");
        builder.append(status);
        builder.append(", views=");
        builder.append(views);
        builder.append(", isEnableComment=");
        builder.append(isEnableComment);
        builder.append(", isDeleted=");
        builder.append(isDeleted);
        builder.append(", createTime=");
        builder.append(createTime);
        builder.append(", modifyTime=");
        builder.append(modifyTime);
        builder.append(", content=");
        builder.append(content);
        builder.append("]");
        return builder.toString();
    }

}